package object3.package3;

public class Child extends Parent{
    public Child(){
       //父类的构造方法是无参数的版本,因此不必使用super来显式调用
    }
    private int num = 10;
    @Override
    public void func(){
        System.out.println("Child.func() num = " + num);
    }
}
